---
layout: default
---

{%- assign lang = page.lang | default: site.lang | default: 'cmn-Hans' -%}
{%- assign info-array = site.data.theme-2038-i18n | map: lang -%}
{%- assign info = info-array[0] -%}
{%- assign t2038 = site.theme-2038 -%}

{% include drawer.html %}
{% if page.title %}
	<h1 class="ml-title">{{ page.title }}</h1>
{% endif %}
<ul class="ml-front">
	<li>
		<p>{{ info.publish-date }}</p>
		{%- assign time = page.date | default: 'now' -%}
		<time datetime="{{ time }}" title="{{ time | date: info.date-format }}" pubdate>
			{%- include nitfaw.html date=time -%}
		</time>
	</li>
	<li>
		<p>{{ info.length }}</p>
		{{ content.size }}
	</li>
	{%- assign clink = t2038.category-links -%}
	{%- if page.categories.size != 0 -%}
	<li>
		<p>{{ info.category }}</p>
		{%- for category in page.categories -%}
		{%- assign cescape = category | uri_escape -%}
		{%- assign now-array = clink | map: category -%}
		{%- if now-array.size == 0 -%}
		<a rel="index" href="
			{{ t2038.category-dir | default: '/category/' | append: cescape | relative_path }}
			">{{ category }}</a>
		{%- else -%}
		<a rel="index" href="{{ now-array[0] }}">{{ category }}</a>
		{%- endif -%}
		{%- endfor -%}
	</li>
	{%- endif -%}
	{%- assign tlink = t2038.tag-links -%}
	{%- if page.tags.size != 0 -%}
	<li>
		<p>{{ info.tag }}</p>
		{%- for tag in page.tags -%}
		{%- assign tescape = tag | uri_escape -%}
		{%- assign now-array = tlink | map: tag -%}
		{%- if now-array.size == 0 -%}
		<a rel="index" href="
			{{ t2038.tag-dir | default: '/tag/' | append: tescape | relative_path }}
			">{{ tag }}</a>
		{%- else -%}
		<a rel="index" href="{{ now-array[0] }}">{{ tag }}</a>
		{%- endif -%}
		{%- endfor -%}
	</li>
	{%- endif -%}
	<li>
		<p>{{ info.source-code }}</p>
		<a href="https://gitee.com/cn-0xis/cn-0xis/tree/master/{{ page.path }}">Gitee</a>
	</li>
</ul>
<article class="ml-article">
	{{ content }}
</article>

